<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>demo</title>
</head>
<body>
<form action="geetest/action.php" method="post">
    <p>用户:&nbsp;<input type="text" id="username" value="admin"></p>
    <p>密码:&nbsp;<input type="password" id="password" value="1234"></p>
    <div id="captchaBox"></div>
    <p id="captchaWait">正在加载验证码</p>
    <p id="captchaNotice" style="display:none;color:red;">请先完成验证</p>
    <p><input type="submit" value="提交" id="submit"></p>
</form>
<script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.js"></script>
<script src="geetest/gt.js"></script>
<script src="geetest/wrap.js"></script>
<script>
function callBackCaptcha(captchaObject){
    callBackCaptchaWrap(captchaObject, "#captchaBox", "#captchaNotice", "#captchaWait", "#submit", 2000);
}

$(function(){
    startCaptchaWrap("geetest/ajax.php?r=" + Math.random(), "popup", callBackCaptcha);
});
</script>
</body>
</html>
